<!DOCTYPE html>
<html lang="zh">
<head>
  <!-- 	<meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta http-equiv="X-UA-Compatible" content="ie=edge">
       -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <title>支付</title>
</head>
<style type="text/css">
  html{
    background: #f4f4f4;
  }
  *{
    margin:0;
    padding:0;
  }
  a{
    text-decoration: none;
  }
  img{
    max-width: 100%;
    height: auto;
  }
  .weixin-tip{
    display: none;
    position: fixed;
    left:0;
    top:0;
    bottom:0;
    background: rgba(0,0,0,0.8);
    filter:alpha(opacity=80);
    height: 100%;
    width: 100%;
    z-index: 100;
  }
  .weixin-tip p{
    text-align: center;
    margin-top: 10%;
    padding:0 5%;
  }
  .k{
    background:#fff;
  }
  .biaoti{
    padding:10px;
    font-size: 16px;
  }
  /*步骤条*/
  .top{
    display: flex;
    font-size: 14px;
    justify-content: center;
    padding-top: 30px;
    background: #f2f2f2;
    padding-bottom: 20px

  }
  .top_li{
    text-align: center;
    position: relative;
    width: 22px
  }
  .red{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ccc;
    margin:0 auto;
    margin-top: 25px;
  }
  .name{
    position: absolute;
    width: 70px;
    left: -24px;
    top: 0;
    color:#666;
  }
  .xian{
    width: 130px;
    height: 2px;
    background:#ccc;
    margin-top: 25px;
  }
  .name.active{
    color:#3683D3;
  }
  .red.active{
    background: #3683D3
  }
  .xian.active{
    background: #3683D3
  }
</style>
<body>
<div class="top">
  <div class="top_li">
    <div class="name active">浏览</div>
    <div class="red active"></div>
  </div>
<!--  <div class="xian active"></div>-->
<!--  <div class="top_li">-->
<!--    <div class="name active">短信验证</div>-->
<!--    <div class="red active"></div>-->
<!--  </div>-->
  <div class="xian active"></div>
  <div class="top_li">
    <div class="name active">在线支付</div>
    <div class="red active"></div>
  </div>
</div>
<div class="k">
  <div class="list">
    <div class="left">订单编号:</div>
    <div class="right">{$res.tong_storage}</div>
  </div>
  <div class="list">
    <div class="left"><?php if($res['chezhu'] == 2){ echo '车主姓名'; }else{ echo '被服务人'; }?>:</div>
    <div class="right">{$res.learned_name}</div>
  </div>
  <div class="list">
    <div class="left">车牌号:</div>
    <div class="right">{$res.car_num}</div>
  </div>
  <div class="list">
    <div class="left">车架号:</div>
    <div class="right">{$res.car_vin}</div>
  </div>
  <?php if($res['tcxm'] == 2){?>
  <div class="list">
    <div class="left">服务项目 :</div>
    <div class="right">{$xiangmu}</div>
  </div>
  <?php }?>
  <div class="list">
    <div class="left">订单金额:</div>
    <div class="right">{$res.main_free}</div>
  </div>

  <?php if($res['jiaofei'] == 2){?>
  <div class="list">
    <div class="left">支付方式:</div>
    <div class="right"><?php echo $res['jiaofei_type']==1?'微信':'支付宝';?></div>
  </div>
  <div class="list">
    <div class="left">支付时间:</div>
    <div class="right">{$res.jiaofei_time}</div>
  </div>
  <div class="button yizhifu">
    已支付
  </div>
  <?php }else{?>
  <!--<a href="{$res.url}" id="arr">-->
  <?php if($time == 1){?>
  <?php if($res['status'] == 3){?>
  <div class="button" id="zhifu">
    去支付
  </div>
  <?php }else{?>
  <div class="button yizhifu">
    支付过期
  </div>
  <?php }?>

  <?php }else{?>
  <div class="button yizhifu">
    支付过期
  </div>
  <?php }?>
  <?php }?>
  <!--</a>-->

</div>
<!--</a>-->


<div class="weixin-tip">
  <p>
    <img src="/assets/img/weixin.png" alt="微信打开"/>
  </p>
</div>
</body>
<script type="text/javascript" src="/assets/js/ace1.4/assets/js/jquery.min.js"></script>
<script type="text/javascript">

  $(window).on("load",function(){
    $("#zhifu").click(function(){
      window.location.href="{$res.url}"
    })

  })
</script>
<script type="text/javascript">
  window.alert = function(name){
    var iframe = document.createElement("IFRAME");
    iframe.style.display="none";
    iframe.setAttribute("src", 'data:text/plain,');
    document.documentElement.appendChild(iframe);
    window.frames[0].window.alert(name);
    iframe.parentNode.removeChild(iframe);
  };
</script>
</html>
<style>
  .k{
    padding:10px;
    box-sizing: border-box;
    font-size: 14px;
  }
  .list{
    display: flex;
    border-bottom:1px solid #eee;
    justify-content: space-between;
    padding:5px;
    color:#666;
    flex-wrap: wrap;
  }
  .list .left{
    line-height: 30px;
  }
  .list .right{
    line-height: 30px;
    font-weight: bold;
  }
  .button{
    width: 90%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color:#fff;
    background-color: #02aaf1;
    margin:20px auto;
    border-radius: 5px;
  }
  .yizhifu{
    background: #999;
  }
  a{
    text-decoration: none;
  }
</style>